﻿using Service.Repository;
using SqlSugar;

namespace Service.Auth.Domain.AggregatesModel
{
    /// <summary>
    /// 客户资源分配表
    /// </summary>
    [SugarTable("tb_client_scopes")]
    public class ClientScopes : Entity, IAggregateRoot
    {
        public ClientScopes()
        {
        }


        public ClientScopes(string clientId, string scopeId, string desc)
        {
            ClientId = clientId;
            ScopeId = scopeId;
            Desc = desc;
        }

        /// <summary>
        /// 客户端标识
        /// </summary>
        [SugarColumn(ColumnName = "client_id", IsPrimaryKey = true)]
        public String ClientId
        {
            set; get;
        }

        /// <summary>
        /// 资源范围Id
        /// </summary>
        [SugarColumn(ColumnName = "scope_id", IsPrimaryKey = true)]
        public String ScopeId
        {
            set; get;
        }

        /// <summary>
        /// api描述
        /// </summary>
        [SugarColumn(ColumnName = "desc")]
        public String Desc
        {
            set; get;
        }
    }
}
